﻿using System;
using Zeus.Pattern.Observer;

namespace Zeus.Biz.Pattern.Observer
{
    public class ProductSubject : BaseSubject
    {
        public override void Attach(IObserver observer)
        {
            base.Attach(observer);
            Console.WriteLine("Observer: {0} attached", observer); 
        }

        public override void Detach(IObserver observer)
        {
            base.Detach(observer);
            Console.WriteLine("Observer: {0} detached", observer); 
        }

        public override void NotifyObservers()
        {
            base.NotifyObservers();
            Console.WriteLine("Notify All Observers");
        }
    }
}
